# Contributor: Nulo <alpine@nulo.in>
# Mantainer: Nulo <alpine@nulo.in>
pkgname=coreboot-ectool
pkgver=4.14
pkgrel=0
pkgdesc="Dumps the RAM of a laptop’s Embedded/Environmental Controller (EC)."
url="https://www.coreboot.org"
arch="x86 x86_64" # Uses inline assembly.
license="GPL-2.0-only"
options="!check" # No test suite.
source="https://coreboot.org/releases/coreboot-$pkgver.tar.xz
	fix-makefile.patch"
builddir="$srcdir/coreboot-$pkgver/util/ectool/"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
14c615472dfe00682e4b0b41b6a04ed3b201395427350f7b53497152f2acc8cbef8144bad06517b413c4076422108bccab2e4732491f5e6fcc4703b14d062b19  coreboot-4.14.tar.xz
44f16ca9824e873d598d87c39216d3390954dc152f85f59d76b58086abfd0481161778cb08eb72f1f3a3d7022319aaabb96a2f07736782713170f2e760b989dd  fix-makefile.patch
"
